<template>
  <div class="container">
    <div class="background-img"></div>
    <div class="img">
      <div class="image">
        <img :src="LeftData.imgUrl" alt="imgUrl" />
      </div>
    </div>
    <div class="introduce">
      <h2>{{ LeftData.title }}</h2>
      <p>
        {{ LeftData.content }}
      </p>
      <button class="btn">了解详情<i class="el-icon-right"></i></button>
    </div>
  </div>
</template>

<script>
export default {
  name: "SchemeLeft",
  props: { LeftData: Object },
  data() {
    return {};
  },
};
</script>

<style lang="less" scoped>
.container {
  display: flex;
  margin: 100px auto;
  box-sizing: border-box;
  padding: 0 70px;
  width: 1200px;
  height: 400px;
  .background-img {
    z-index: 1;
    position: absolute !important;
    width: 550px;
    height: 250px;
    border-radius: 25px;
    background-color: #31c46c;
  }
  .img {
    padding: 25px 0;
    box-sizing: border-box;
    width: 700px;
    height: 100%;
    .image {
      display: flex;
      justify-content: center;
      align-items: center;
      z-index: 2;
      position: relative;
      margin: 0 50px;
      width: 600px;
      height: 350px;
      box-shadow: -8px 8px 10px rgba(49, 196, 108, 0.5);
      border-radius: 25px;
      overflow: hidden;
      img {
        width: 100%;
        height: 100%;
        object-fit: cover;
      }
    }
    .image:hover {
      cursor: pointer;
      transition: all 0.6s;
      transform: translateY(-3px);
    }
  }
  .introduce {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
    padding: 30px 0;
    box-sizing: border-box;
    width: 364px;
    height: 100%;
    letter-spacing: 3.6px;
    h2 {
      font-size: 31px;
      color: #31c46c;
      font-weight: 700;
    }
    p {
      margin: 0 10px;
      font-size: 15px;
      color: #8c8c8cff;
      font-weight: 400;
      line-height: 1.8;
    }
    .btn {
      box-shadow: -8px 8px 10px rgba(49, 196, 108, 0.4);
      width: 150px;
      height: 50px;
      border-radius: 25px;
      border: 0px;
      cursor: pointer;
      font-weight: 550;
      background: #31c46c;
      color: #fff;
      .el-icon-right {
        font-size: 20px;
        margin-left: 15px;
      }
    }
    .btn:hover {
      transition: all 0.6s;
      transform: translateY(-3px);
      box-shadow: -8px 8px 10px rgba(49, 196, 108, 0.5);
    }
  }
}
</style>
